package com.dubito.pattern.迪米特原则;

/**
 * @author liliang
 * @date 2020/8/26.
 */
public class Friend {

     private Stranger stranger = new Stranger();

     public void forward() {
         stranger.strangerMethod();
     }

     public void friendMethod() {
         System.out.println("这是朋友的方法");
     }
}
